config: add prior defaults for ExternalPotential#423
Merged
Conversation
Adds the missing library-default prior YAML for `ag.mp.ExternalPotential` (added in #422) so `af.Model(ag.mp.ExternalPotential)` resolves without a config error. centre uses Gaussian(0, 0.1) matching Isothermal/MassSheet; the six gamma/tau/delta components use Uniform(-0.3, 0.3) with Absolute width_modifier 0.05 (mirrors ExternalShear's gamma priors). Follow-up to #419 / #422. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #422. Adds the missing library-default prior YAML for
ag.mp.ExternalPotentialsoaf.Model(ag.mp.ExternalPotential)resolves without a config error.centre_0,centre_1:Gaussian(0, 0.1)— matchesIsothermalandMassSheetconventions.gamma_1,gamma_2,tau_1,tau_2,delta_1,delta_2:Uniform(-0.3, 0.3)withAbsolutewidth_modifier0.05— mirrorsExternalShear's gamma priors.Verified locally:
af.Model(ag.mp.ExternalPotential)builds an 8-parameter (centre + 6 components —ell_compsare fixed (0,0) so excluded from priors) model with all medians at 0 as expected.API Changes
None — config-only addition. See full details below.
Test Plan
python -c "import autofit as af, autogalaxy as ag; af.Model(ag.mp.ExternalPotential).instance_from_prior_medians()"returns the class with all priors resolved.Full API Changes (for automation & release notes)
Added
autogalaxy/config/priors/mass/sheets/external_potential.yaml— library default priors forExternalPotential.Changed
None.
Removed
None.
Migration
None — workspace clones that want different priors can shadow this file with their own
config/priors/mass/sheets/external_potential.yaml.🤖 Generated with Claude Code